trigger PhaseChange on Opportunity (after insert, after update, before update) {

	if (Trigger.isUpdate){
		if(Trigger.isBefore){
			if(Trigger.new[0].StageName == Trigger.old[0].StageName ){
				Trigger.new[0].addError(
					'You must change Phase');
			}
		}
	}


}